package com.xc.hotelmgr.webapi.modules.ord.service.impl;

import com.xc.hotelmgr.webapi.common.utils.PageUtils;
import com.xc.hotelmgr.webapi.common.utils.Query;
import com.xc.hotelmgr.webapi.modules.ord.dao.OrdWorkOrderDao;
import com.xc.hotelmgr.webapi.modules.ord.entity.OrdWorkOrderEntity;
import com.xc.hotelmgr.webapi.modules.ord.service.OrdWorkOrderService;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;



@Service("ordWorkOrderService")
public class OrdWorkOrderServiceImpl extends ServiceImpl<OrdWorkOrderDao, OrdWorkOrderEntity> implements OrdWorkOrderService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<OrdWorkOrderEntity> page = this.page(
                new Query<OrdWorkOrderEntity>().getPage(params),
                new QueryWrapper<OrdWorkOrderEntity>()
        );

        return new PageUtils(page);
    }

}